from django.conf.urls.defaults import *
from mysite.settings import TEMPLATE_DIRS
from mysite.settings import STATIC_DOC_ROOT

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^mysite/', include('mysite.foo.urls')),
    (r'^upload/', 'mysite.views.upload'),
    (r'^gera/', 'mysite.views.geraEstruturaApp'),

    # css / imagens
    (r'^site_media/(?P<path>.*)$', 'django.views.static.serve', dict(document_root=TEMPLATE_DIRS[0]+'/static')),



#   (r'^upload/', '/Users/diego/Downloads/_TCC/dia2django/mysite/templates'),
#	(r'^accounts/login/?$', 'django.contrib.auth.views.login', dict(template_name=TEMPLATE_DIRS[0]+'/login.html')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    (r'^admin/(.*)', admin.site.root),
)
